<!-- 隐私协议 -->
<template>
	<view class="v-service-page">
		<rich-parser
			:html="protocolInfo.protocol"
			domain="https://6874-html-foe72-1259071903.tcb.qcloud.la"
			lazy-load
			ref="article"
			selectable
			show-with-animation
			use-anchor
			lazyLoad="true"
		></rich-parser>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				protocolInfo:{}
			}
		},
		onLoad() {
			this.getProtocol();
		},
		methods: {
			
			// 商城设置_协议
			async getProtocol() {
				const result = await this.$http.get({
					url: this.$api.mallSet,
					data: {}
				});
				if (result.errno == 0) {
					this.protocolInfo = result.data;
					this.$sun.title(this.protocolInfo.protocol_name)
					console.log('商城设置_协议', result.data,result.data.protocol);
					uni.setStorageSync('software', this.protocolInfo);
					
					
				} else {
					this.$sun.toast(result.message);
				}
			},
		}
	}
</script>

<style lang="less">
page {
	background-color: #f7f7f7;
}
.v-service-page {
	padding: 28rpx;
}
</style>
